from ext import db
from datetime import datetime

class BaseModel(db.Model):
    __abstract__ = True
    id = db.Column(db.Integer, primary_key=True, unique=True, autoincrement=True, nullable=False)
    create_time = db.Column(db.DateTime, nullable=False, default=datetime.now())